{include template('header')}
{include template('theme')}
{include template('top')}
			<div class="wp" id="wrapper">
			<div id="primaryleft">
			<div class="article article_detail" id="article-{$article['aid']}">
			
				<h1 class="article-title">{$article['title']}</h1>
				<?php 
				if (!empty($article['password']) && $article['uid'] != $_G['uid'] && !ISADMIN) {
				$pass = getGP('article_passwd'.$id,'c');
				if ($pass != $article['password']) {
					$article['content'] = '<form method="post" action="javascript: article_password('.$article['aid'].');"><div><h4>加密日志</h4><p>这篇日志已被密码保护，请输入密码后查看。<br />密码：<input type="password" name="passwd'.$article['aid'].'" size="22" /> <input type="submit" name="submit'.$article['aid'].'" value="提交" /></p></div><div id="errormsg">&nbsp;</div></form>';
				}
				}
				?>
				<div class="content"><?=ubb_decode($article['content'])?>
				<br/><br/>
				<!--QQ邮件列表订阅嵌入代码-->
<script >
var nId = "2d66692d5199231f42920a128eb1a525e93dc6632110d939",nWidth="auto",sColor="light",sText="填写您的邮件地址，订阅最新的PHP开发文章：" ;;
</script>
<script src="http://list.qq.com/zh_CN/htmledition/js/qf/page/qfcode.js" charset="gb18030"></script>
				<br/><br/>文章地址:<a href="{url article.php?id=$article[aid]}"  title="{$article['title']}">{$_G['settings']['siteurl']}/{url article.php?id=$article[aid]}</a> @ <a href="{$_G['settings']['siteurl']}" target="_blank" title="{$_G['settings']['subtitle']}">{$_G['settings']['sitename']}</a>
				</div>
				<div class="post-info">
				<?=gdate('Y年m月d日',$article['dateline']); ?>,<?=$article['views'];?> 次阅读 
				{if $article['tags']}| 标签:{$article['tags']}{/if} | 
				<?=$article['comments']?$article['comments'].' 条评论':'暂无评论'?> <a href="#post_comment" >发表评论</a>
				</div>
				
				<div class="widget sidebarWidget">
      <h3 class="widgetbgTitle"><span><a target="_blank" href="{url category.php?id=$article[cid]}">更多&gt;&gt;</a></span>相关文章</h3>
      <div class="txt">
      	        <?php $refer_articles=get_category_contents($article['cid'],5);?>
        <ul>
        <?php foreach($refer_articles as $refer_article):?>
		<li>·<a href="{url article.php?id=$refer_article[aid]}" target="_blank" title="{$refer_article['title']}">{$refer_article['title']}</a></li>
		<?php endforeach;?>
		</ul>
      </div>
      </div>
				<?php include template('comment');?>
			</div>
			</div>
			{include template('left');}
			<div class="clear"></div>
			</div>
		
		
{include template('footer');}